<?php $this->load->view('admin/adhead.html'); ?>

<?php $this->load->view('admin/adsider.html'); ?>

  <!-- Content Wrapper. Contains page content -->
  <div class="content-wrapper">

    <!-- Main content -->
    <section class="content">

      <div class="row">
        <div class="col-md-12">
          <div class="box box-primary">
            <div class="box-header">
              <h3 class="box-title">CK Editor
                <small>Advanced and full of features</small>
              </h3>

            </div>
            <!-- /.box-header -->
			<form class="form-horizontal" action="<?php echo site_url('article/updatearticle'); ?>" method="post">
			  
			<div class="box-header">
				<div class="form-group">
                  <label for="inputtitle" class="col-sm-1 control-label">文章标题</label>

                  <div class="col-sm-11">
                    <input type="text" class="form-control" name="title" id="inputtitle" value="<?=$art->title?>">
                  </div>
                </div>

				<div class="form-group">
					<label class="col-sm-1 control-label">文章分类</label>
					<div class="col-sm-2">
					   <select class="form-control" name="cate">
						<?php foreach($cate as $cname):?>
							<option value="<?=$cname->id?>" <?php echo $cname->id==$art->cate?"selected":""; ?>><?=$cname->name?></option>
						<?php endforeach;?>
					  </select>
                  </div>
				</div>

				<div class="form-group">
                  <label for="inputinfo" class="col-sm-1 control-label">文章标签</label>

                  <div class="col-sm-11">
                    <input type="text" name="tag" class="form-control" id="inputinfo" value="<?=$art->tag?>">
                  </div>
                </div>


				<div class="form-group">
                  <label for="inputdes" class="col-sm-1 control-label">文章简介</label>

                  <div class="col-sm-11">
					<textarea name="description" class="form-control" id="inputdes" rows="3" ><?=$art->description?></textarea>
                  </div>
                </div>
				
			</div>

            <div class="box-body">
              
             <script id="container" name="content" type="text/plain"><?=$art->text?></script>
              
            </div>
			<input type="hidden" name="id" value="<?=$art->id?>" />
			<div class="box-header">

			<div class="form-group pad">
              <div class="pull-right">
                <button type="submit" class="btn btn-primary"><i class="fa fa-envelope-o"></i> 发布</button>
              </div>
              <button type="reset" class="btn btn-default"><i class="fa fa-times"></i> 重置内容</button>
            </div>
			</div>


			</form>
          </div>
          <!-- /.box -->
       
        </div>
        <!-- /.col-->
      </div>
      <!-- ./row -->

    </section>
    <!-- /.content -->
  </div>
  <!-- /.content-wrapper -->

<?php $this->load->view('admin/adfooterueditor.html'); ?>